$(function(){
	loadA();
    readWord()
    showContentTip();
});
function loadA(){
	$("#mainFrame").load("Welcome.html")
}	
function showContentTip(){
	layer.open({
		type:0,
		title:"系统提示",
		area:'auto',
		icon:1,
		time:2000,
		anim:2,
		content:"欢迎"+sessionStrorage.getItem("uname")+"登录"
	});
}
function readWord(){
	var uname=sessionStorage.getItem("uname");
	$("#uname").html(uname);
	   loadA();
}
$("#data").click(function(){
	$("#mainFrame").load("index.html");
})
/*function loadDataDict(){
	$("#mainFrame").load("index.html");
}*/
$("#person").click(function(){
	$("#mainFrame").load("paintAsseManager.html");
})
function paintAM(){
	$("#mainFrame").load("paintAsseManager.html");
}
function loadPersonCenter(){
	$("#mainFrame").load("MoneyManage.html")
}

function sysExit(){
	layer.confirm("是否确认退出？",{
		btn:["确定","取消"],
		icon:3,
		btnAlign:"c",
		shade:.3,
		anim:6
	},function(){
		window.location.href="login.html";
	});
	
}
